package cn.liontalk.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author: 周哲
 * @package: cn.liontalk.util
 * @description: 验证工具类
 * @date: 2019/1/19 16:16
 * @version: V1.0
 */
public class ValidateUtil {


    private static final  Pattern pattern = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0-9])|(14[5,7])| (17[0,1,3,5-8]))\\d{8}$");

    public static boolean checkPhonePattern(String  phone){
        Matcher m = pattern.matcher(phone);
        return m.matches();
    }
}
